/**
 * Copyright(c) 2013 Jade Techonologies Co., Ltd.
 *
 * History:
 *   13-4-13 下午11:14 Created by dwzhang
 */
package com.jade.framework.base.lang;

/**
 * 带有参数的处理异常，通常情况下，message为具体的异常描述，例如 err.framework.xxx_xxx_xxx 等等。
 *
 * @author dwzhang
 * @version 1.0 13-4-13 下午11:14
 */
public class ArgumentException extends Exception
{
    protected Object[] args;

    public ArgumentException(String message, Object... args)
    {
        super(message);
        this.args = args;
    }

    public ArgumentException(String message, Throwable cause, Object... args)
    {
        super(message, cause);
        this.args = args;
    }

    public Object[] getArguments()
    {
        return args;
    }
}

